<!DOCTYPE html>
<html lang="en">
<script src="command/jquery/jquery-3.4.1.js"></script>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    window.onload=function exit() {
        // $.ajax({
        //     type:"POST",
        //     url:"/logoutsession/"+sessionStorage.getItem("username"),
        //     async:false,
        //     success:function (result) {
        //
        //     },
        //     error :function(errorMsg) {
        //         alert("退出失败");
        //     }
        // });
        sessionStorage.clear();
        window.location.href = "/login";
    }
</script>
</body>
</html>